/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei UI', sans-serif;
    background: transparent;
    overflow: hidden;
    user-select: none;
    -webkit-app-region: no-drag;
}

/* 悬浮窗主容器 */
.float-window {
    width: 380px;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.float-window:hover {
    background: rgba(25, 25, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

/* 标题栏 */
.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(30, 30, 40, 0.6);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-app-region: drag;
}

.title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

.controls {
    display: flex;
    gap: 4px;
    -webkit-app-region: no-drag;
}

.control-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.close-btn:hover {
    background: rgba(255, 100, 100, 0.8);
}

/* 时间显示区域 */
.time-section {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: rgba(40, 40, 50, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.time-block:hover {
    background: rgba(45, 45, 55, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.time-label {
    font-size: 11px;
    color: #a0a0a0;
    margin-bottom: 4px;
    font-weight: 500;
}

.time-display {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.local-time .time-display {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.target-time .time-display {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.millisecond {
    font-size: 10px;
    color: #888;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 延迟信息 */
.delay-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(60, 60, 70, 0.6);
    border-radius: 6px;
    font-size: 12px;
}

.delay-label {
    color: #b0b0b0;
}

.delay-value {
    color: #ffd700;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 配置区域 */
.config-section {
    padding: 0 16px 16px;
}

.config-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #b0b0b0;
}

.config-row label {
    min-width: 60px;
    font-weight: 500;
}

.ip-input {
    flex: 1;
    padding: 6px 8px;
    background: rgba(40, 40, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
}

.ip-input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.ping-btn {
    padding: 6px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ping-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ping-btn:active {
    transform: translateY(0);
}

.config-row input[type="number"] {
    width: 60px;
    padding: 4px 6px;
    background: rgba(40, 40, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    text-align: center;
}

.config-row input[type="number"]:focus {
    outline: none;
    border-color: #ffd700;
}

.config-row span {
    color: #888;
    font-size: 10px;
}

/* 动画效果 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.ping-btn.loading {
    animation: pulse 1s infinite;
    background: linear-gradient(135deg, #888 0%, #666 100%);
    cursor: not-allowed;
} 